const mongoose = require('mongoose');
const {model, Schema} = mongoose;

const schema = new Schema({
  pk: {type: String},//公钥
  sk: {type: String},
  uId: {type: String, index: true},
  createTime: {type: Date, index: true, default: new Date()},
  updateTime: {type: Date, index: true, default: new Date()}
});

const Key = model('key', schema);

module.exports = Key;